package com.shxy.ui;

import lombok.Data;

/**
 * 通用回复
 */
@Data
public class CommonReturn {
    private String status;
    private Object data;

    private CommonReturn(String status, Object data){
        this.status = status;
        this.data = data;
    }

    public static CommonReturn create(String status, Object data){
        return new CommonReturn(status, data);
    }

    public static CommonReturn create(Object data){
        return new CommonReturn("success", data);
    }

    public static CommonReturn create(){
        return new CommonReturn("success", null);
    }
}
